QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
#DEFINES += PNG_STATIC
#INCLUDEPATH += $$PWD/libpng
#LIBS += $$PWD/libpng/libpng16.lib
#LIBS += $$PWD/libpng/zlib.lib
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
# 改用相对路径或系统变量
LIBS += -L$$[QT_INSTALL_LIBS] -lQt6Network
# 添加 Windows 网络和加密库

QT += widgets
QT += concurrent
TEMPLATE = lib
#TEMPLATE = app
CONFIG += plugin

QMAKE_CXXFLAGS_RELEASE += -flto
QMAKE_LFLAGS_RELEASE += -flto
QT -= gui sql network multimedia
QT += core widgets
TARGET = PluginHW_0
DEFINES += PLUGINHW0_LIBRARY

SOURCES += \
    DealCpp/BaseElement.cpp \
    DealCpp/Common.cpp \
    DealCpp/everyClass.cpp \
    DealCpp/fileIO.cpp \
    DealCpp/math.cpp \
    DealCpp/picDeal.cpp \
    DealCpp/zero_threadpool.cpp \
    PluginMainWindow.cpp \
    #main.cpp \
    picdialog.cpp \
    sandlight.cpp

HEADERS += \
    DealH/BaseElement.h \
    DealH/Common.h \
    DealH/evenP.h \
    DealH/everyClass.h \
    DealH/fileIO.h \
    DealH/math.h \
    DealH/picDeal.h \
    DealH/zero_threadpool.h \
    PluginInterface.h \
    PluginMainWindow.h \
    picdialog.h \
    sandlight.h

FORMS += \
    picdialog.ui \
    sandlight.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    myResource.qrc
